﻿using System;
using ZyGame.Transport.Common;

namespace ZyGame
{
    public interface ISerializeble
    {
        string Serialized();
        bool Deserialized(string text);
    }

    public interface INetworkSerialized : IDisposable
    {
        object Deserialized(ByteBuf buf);
        ByteBuf Serialized(object message);
    }
}
